cars = ['audi', 'bmw', 'subaru', 'toyota']
for car in cars:
    if car.lower() == 'bmw':
        print(car.upper())
    else:
        print(car.title())

answer = 17
if answer > 0 or answer != 42:
    print("that is not the correct answer.")
elif answer > 8 and answer < 20:
    print("That is right")
else:
    print("over")

requested_toppings = ['mushrooms', 'onions', 'pineapple']
if 'aaa' not in requested_toppings:
    print("not in")
else:
    print("in")

requested_toppings = []
if requested_toppings:
    for requested_topping in requested_toppings:
        print("Adding " + requested_topping)
else:
    print("Are you sure you want a plain pizza?")

requested_toppings = ['mushrooms', 'onions', 'pineapple']
available_toppings = ['mushrooms', 'pineapple']
for requested_topping in requested_toppings:
    if requested_topping in available_toppings:
        print("OK. adding " + requested_topping)
    else:
        print("Sorry, we don't have " + requested_topping)

print('------------------ while ------------------')
current_number = 1
while current_number <= 5:
    print("while number: " + str(current_number))
    current_number += 1

print('----- break -----')
current_number = 1
while current_number <= 5:
    if (current_number == 3):
        break
    print("while number: " + str(current_number))
    current_number += 1

print('----- continue -----')
current_number = 1
while current_number <= 5:
    if (current_number == 3):
        current_number += 1
        continue
    print("while number: " + str(current_number))
    current_number += 1
